package com.yyr.callmessage.img.domain.service;

import com.yyr.callmessage.img.domain.cache.VerificationImgCache;

import javax.annotation.Resource;

/**
 * @Description:
 * @Author：
 * @Date：2021/6/29
 */
public class VerificationImgService {

    @Resource
    private VerificationImgCache cache;

    /**
     * 添加 IMG:phone - value 图片验证码缓存
     * @param phone
     * @param verificationImg
     */
    public void addVerificationImg(String phone,String verificationImg){
        cache.addVerificationImg(phone, verificationImg);
    }

    /**
     * 获取图片验证码缓存
     * @param phone
     * @return
     */
    public String getVerificationImg(String phone){
        return cache.getVerificationImg(phone);
    }

}
